# import twitter, time #http://code.google.com/p/python-twitter/
# from Globals import *
# from threading import Timer
# # # Go to http://dev.twitter.com and create an app. 
# # # The consumer key and secret will be generated for you after

# class meTwitty():
# 	consumer_key="Laa4ZNDOqCkUXjTbG1gmrw"
# 	consumer_secret="rivFgCTOtPvu2rJk84BECfXokDUCv3CZnpdJ4IhEY3M"
# 	# # After the step above, you will be redirected to your app's page.
# 	# # Create an access token under the the "Your access token" section
# 	access_token="1201409562-uy5wYqKLUmyVyez8NFYVXzxdd0WNrcvzNz8Q74e"
# 	access_token_secret="8r7ywP97EJaoFk9zVE1FA32jPRy5Qhx5szekNns"
# 	api = twitter.Api(consumer_key,consumer_secret, access_token, access_token_secret)
# 	latestPostID = (api.GetMentions()[0].id)	#Used so that already posted messages will not be loaded again
# 	callback = None
# 	def __init__(self,callback):
# 		global hook
# 		self.callback = callback   
# 		print "pTwitter plugin loaded!"
# 		Timer(5,self.getNewStatus).start()

# 	def getNewStatus(self):
# 		newStatus = False
# 	 	statuses = self.api.GetMentions(self.latestPostID)
# 	 	p = open("/dev/shm/twitter.mc", "w")
# 		for s in statuses:
# 			newStatus = True
# 			output = ""
# 			output = re.sub('(@([a-z0-9])+)','',s.text,flags=re.IGNORECASE)
# 			p.write(self.callback.getYTlink((output) + "\n"))	
# 		p.close() 
# 		self.latestPostID = self.api.GetMentions()[0].id
# 		if newStatus:
# 			self.callback.playPlaylist("/dev/shm/twitter.mc")
# 		Timer(30,self.getNewStatus).start()

def run():
	print "Not working atm"
# def run():
# 	meTwitty(hook.main)

	
